{% extends "base.html" %}　
{% block mainbody %}
    <p>继承了 base.html 文件</p>
{% endblock %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>子模板</title>
</head>
<body>
<P>{{ name }}</P>
</body>
</html>